package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

@Getter
@Setter
public class StrategyCommentQuery extends QueryObject{
    private String strategyId;

    @Override
    public Pageable getPageable() {
        return  PageRequest.of(super.getCurrentPage() - 1, super.getPageSize(),
                Sort.Direction.DESC, "createTime");
    }
}
